package com.example.travel.mapper;

import com.example.travel.bean.HotelBean;
import com.example.travel.bean.LineBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LineMapper {
    List<LineBean> getLineList();
    int addLine(LineBean line);
    int deleteLine(int lineID);
    int updateLine(LineBean line);

    LineBean getLineById(int lineID);
    
    List<LineBean> getLineListWithPagination(String searchKeyword, int offset, int pageSize);
    int getLineCount(String searchKeyword);

    List<LineBean> selectLeastOrderedLinesInLastMonth();
}
